package com.itheima.test.testnight;

public class duotai {
    public static void main(String[] args) {
        Anmial anmial=new Cat();
        anmial.eat();
    }
}
interface Anmial{
    public abstract void eat();
}
class Cat implements Anmial{

    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
}